#ifndef __CONFIG_H__
#define __CONFIG_H__

#include "common.h"

enum info_type{
    type_num,
    type_string
};

typedef struct _info{
    char name[32];
    size_t offset;
    size_t size;
    int type;
}info;

typedef struct _config{
    uint32_t print_code;
    uint16_t server_port;
    uint32_t sample_time;
}config;

void init_config(void);

void reset_print_code(void);
void set_print_code(int flag,int value);
uint32_t get_print_code(void);
uint16_t get_server_port(void);
uint32_t get_sample_time(void);

#endif // !__CONFIG_H__
